 {% for item in rules %}
          
						<tr data-tt-id="{{item.id}}" data-tt-parent-id="{{'0' if item.pid==0 else item.pid}}" data-tt-branch="{{'true' if item.hasChildren==1 else 'false'}}">
          
         
            <td>
              <span class="pd-l-sm"></span><i class="{{item.icon if item.icon else ''}}"></i> {{item.name}}
            </td>
            <td>{{item.url if item.url else ''}}</td>
            <td>{{item.code if item.code else ''}}</td>
             <td>
            	{{'私有' if item.auth == 1 else '公开'}}</td>
            <td>
            	{% if item.status == 1 %}
            	<i id="disable_{{item.id}}" class="fa fa-circle text-success ml5"></i>{% else %}<i id="disable_{{item.id}}" class="fa fa-circle text-danger ml5"></i>{% endif %}</td>
            <td>
              <div class="btn-group">
                <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
                  <i class="ti-settings"></i>
                  <span class="ti-angle-down"></span>
                </button>
                <ul class="dropdown-menu" role="menu">
                  <li><a href="/system/rule/detail?id={{item.id}}" data-toggle="modal"
                         data-target="#dialogDetail">查看</a></li>
                  <li><a href="/system/rule/edit?id={{item.id}}" data-pjax>修改</a></li>
                  <li><a href="javascript:;" onclick="del({{item.id}})">删除</a></li>
                  <li class="divider"></li>
                  <li><a href="/system/rule/add?pid={{item.id}}" data-pjax>添加子菜单</a></li>
                  <li class="divider"></li>
                  <li><a href="javascript:;" onclick="enableRole({{item.id}})">启用</a></li>
                  <li><a href="javascript:;" onclick="disableRole({{item.id}})">禁用</a></li>
                </ul>
              </div>
            </td>
          </tr>
          {% endfor %}